package com.ruoyi.retirement.service.impl;

import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.retirement.domain.RetirementArticleCollect;
import com.ruoyi.retirement.mapper.RetirementArticleCollectMapper;
import com.ruoyi.retirement.service.IRetirementArticleCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 文章报名列表Service业务层处理
 * 
 * @author 曹旭
 * @date 2025-09-03
 */
@Service
public class RetirementArticleCollectServiceImpl implements IRetirementArticleCollectService 
{
    @Autowired
    private RetirementArticleCollectMapper retirementArticleCollectMapper;


    /**
     * 查询文章报名列表列表
     * 
     * @param retirementArticleCollect 文章报名列表
     * @return 文章报名列表
     */
    @Override
    public List<RetirementArticleCollect> selectRetirementArticleCollectList(RetirementArticleCollect retirementArticleCollect)
    {
        return retirementArticleCollectMapper.selectRetirementArticleCollectList(retirementArticleCollect);
    }

    /**
     * 新增文章报名列表
     * 
     * @param retirementArticleCollect 文章报名列表
     * @return 结果
     */
    @Override
    public int insertRetirementArticleCollect(RetirementArticleCollect retirementArticleCollect)
    {
        retirementArticleCollect.setCreateTime(DateUtils.getNowDate());
        return retirementArticleCollectMapper.insertRetirementArticleCollect(retirementArticleCollect);
    }

    /**
     * 删除文章报名列表信息
     * 
     * @param retirementArticleCollect 文章报名列表主键
     * @return 结果
     */
    @Override
    public int deleteRetirementArticleCollectById(RetirementArticleCollect retirementArticleCollect)
    {


        return retirementArticleCollectMapper.deleteRetirementArticleCollectById(retirementArticleCollect);
    }
}
